package com.sunreal.paygateway.service.channel.wechat;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import com.sunreal.paygateway.service.channel.PayConfig;

/**
 * User: rizenguo
 * Date: 2014/10/29
 * Time: 14:40
 * 这里放置各种配置数据
 */
@Component
@ConfigurationProperties(prefix = "config.wx")
public class WxPayProperties extends PayConfig {

    private String certRootPath;

    private String notifyUrl;

    private String refundNotifyUrl;

    private String logoFilePath;

    public String getCertRootPath() {
        return certRootPath;
    }

    public void setCertRootPath(String certRootPath) {
        this.certRootPath = certRootPath;
    }

    public String getNotifyUrl() {
        return getBaseurl() + notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getLogoFilePath() {
        return logoFilePath;
    }

    public void setLogoFilePath(String logoFilePath) {
        this.logoFilePath = logoFilePath;
    }

    public String getRefundNotifyUrl() {
        return getBaseurl() + refundNotifyUrl;
    }

    public void setRefundNotifyUrl(String refundNotifyUrl) {
        this.refundNotifyUrl = refundNotifyUrl;
    }
}
